'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.post('/mini/upload', controller.mini.upload);
  router.post('/mini/preview', controller.mini.preview);
  router.post('/mini/sourceMap', controller.mini.sourceMap);
};
